package com.hyt.it.ogt.pj.data.model.entity.pj;

import java.math.BigDecimal;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.hyt.core.base.BaseEntity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 评卷块分数表
 * </p>
 *
 * @author qiaozj
 * @since 2020-07-09
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("pj_piece_score")
@ApiModel(value="PieceScore对象", description="评卷块分数表")
public class PieceScore extends BaseEntity {

    private static final long serialVersionUID = 1L;

    private String subjectId;

    @ApiModelProperty(value = "评卷块")
    private String pieceId;

    @ApiModelProperty(value = "评卷任务ID")
    private String taskId;

    @ApiModelProperty(value = "密号")
    private String encodeId;

    @ApiModelProperty(value = "评卷账号")
    private String userId;

    @ApiModelProperty(value = "主观题分")
    private BigDecimal subjectiveScore;

    @ApiModelProperty(value = "客观题分")
    private BigDecimal objectiveScore;

    @ApiModelProperty(value = "分数")
    private BigDecimal score;

    @ApiModelProperty(value = "出分类型:0正常,1问题卷")
    private Integer scoreType;

    @ApiModelProperty(value = "评卷阶段")
    private String stage;

    @ApiModelProperty(value = "问题卷类型")
    private Integer problemType;

    @ApiModelProperty(value = "评语")
    private String comment;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "开始时间", hidden = true)
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date markStartTime;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date markEndTime;

    @ApiModelProperty(value = "最后一次评卷时间")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastMarkTime;

    @ApiModelProperty(value = "评卷完成标记（0：未完成 1：已完成）")
    private Integer finish;

    @ApiModelProperty(value = "评卷次数")
    private Integer markTimes;

    @ApiModelProperty(value = "评卷时长")
    private BigDecimal duration;


}
